package com.hy.admin.service;

import com.hy.admin.entity.MemberEntity;
import com.hy.admin.entity.TeacherEntity;
import com.hy.admin.helper.request.AccountRequest;
import com.hy.admin.helper.request.MemberRequest;
import com.hy.admin.helper.request.TeacherRequest;
import com.hy.admin.helper.response.PersonalResponse;
import com.hy.core.response.ServicesResult;

import java.util.List;

/**
 * Created by yangqq on 18/4/8.
 */
public interface TeacherService {
    /**
     * 获取所有教师列表
     * @return
     */
    ServicesResult<List<TeacherEntity>> list(TeacherRequest teacherRequest);

    /**
     * 教师主页
     * @param memberId
     * @return
     */
    ServicesResult<PersonalResponse> home(Long memberId);
    /**
     * 名师推荐
     * @return
     */
    ServicesResult<List<TeacherEntity>> recommend(TeacherRequest teacherRequest);

    /**
     * 后台获取教师数量
     * @return
     */
    Integer countByType();

    /**
     * 后台获取教师列表
     * @param teacherRequest
     * @return
     */
    ServicesResult<List<MemberEntity>> listByType(TeacherRequest teacherRequest);

    ServicesResult<Boolean> audit(TeacherRequest teacherRequest);

    MemberEntity selectById(Long teacherId);
}
